package com.youku.expression.ast;

import com.youku.expression.Token;
import com.youku.expression.TokenType;

public class BooleanPrimaryAst extends PrimaryAst {

	public BooleanPrimaryAst(Token token, Ast... asts) {
		super(token, asts);
	}

	@Override
	protected Object getPrimaryValue() {
		TokenType type=getTokenType();
		if(type==TokenType.TRUE){
			return true;
		}else{
			return false;
		}
	}

}
